#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
# define SWAP_BIT(n)   (n = ((n&0xaaaaaaaa)>>1)+((n&0x55555555)<<1))
int main()
{
	//1010
	//0101
	int a = 10;
	SWAP_BIT(a);
	printf("%d ", a);
	SWAP_BIT(a);
	printf("%d", a);
	return 0;
}
